package com.infoblazer.jimql;

/**
 *
 * User: Dave
 * Date: Nov 21, 2010
 * Time: 7:19:48 AM
 *
 */
public  class ConnectionTypeFactory {


    public static JimqlConnection buildJimqlConnection(Jimql.DBTYPE dbtype){
        JimqlConnection jimqlConnection = null;
        if (dbtype== Jimql.DBTYPE.HSQLDB){
                jimqlConnection = new HsqlJimql();
        }
        else if (dbtype== Jimql.DBTYPE.H2){
                jimqlConnection = new H2Jimql();
        }
        else if (dbtype== Jimql.DBTYPE.Derby){
                jimqlConnection = new DerbyJimql();
        }


        return jimqlConnection;

    }
}
